<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%
   sns_name  = GlobalSetting[:sns_name]
   sns_theme = GlobalSetting[:sns_theme]
%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <meta http-equiv="content-style-type" content="text/css"/>
  <title><%= @title_str || sns_name %></title>
  <%= stylesheet_link_tag "web-app-theme/base",
                             "web-app-theme/themes/#{sns_theme || 'reidb-greenish'}/style",
                             "web-app-theme/override" %>
  <%= stylesheet_link_tag "application" %>
  <%= stylesheet_link_tag "event_calendar" %>
  <%= stylesheet_link_tag "prototype-window/themes/default" %>
  <%= javascript_include_tag :defaults %>
  <%= javascript_include_tag 'prototype-window/window' %>
  <%= javascript_include_tag 'prototype-window/window_effects' %>
  <%= csrf_meta_tag %>
</head>
<body>
  <div id="container">
    <div id="header">
      <h1><a href="/"><%= sns_name %></a></h1>
      <%= render :partial => "portal/top/menu" %>
    </div>    
    <div id="wrapper" class="wat-cf">
      <div class="flash">
        <% flash.each do |type, message| -%>
          <div class="message <%= type %>">
            <p><%= message %></p>
          </div>
        <% end -%>
      </div>
      <div id="main">
        <%= yield %>
      </div>
      <div id="sidebar">
        <%= yield :sidebar %>
      </div>
    </div>    
    <div id="footer">
      <%= render :partial => "portal/top/footer" %>
    </div>
  </div>
</body>
</html>
